package models

import (
	"github.com/astaxie/beego/orm"	
)

func (m *IndexPromotionBanner)ReadForHome()(IndexPromotionBanners []*IndexPromotionBanner,err error) {
	if _,err=orm.NewOrm().QueryTable("IndexPromotionBanner").All(&IndexPromotionBanners);err!=nil{
		return IndexPromotionBanners,err
	}
	return IndexPromotionBanners,nil
}